package com.bzxhh;

public class Main {

    public static void main(String[] args) {
        Thread bzxhh = new Thread(() -> {
            System.out.println(Thread.currentThread().getName() + "::" + Thread.currentThread().isDaemon());
            while (true) {

            }
        }, "bzxhh");
        //设置守护线程
        bzxhh.setDaemon(true);
        bzxhh.start();

        System.out.println(Thread.currentThread().getName() + " over!");
    }

}
